package com.dayaokeji.server_api.domain;

import java.io.Serializable;

/**
 * Created by Zeno on 2017/10/2.
 */

public class Member implements Serializable {

    private static final long serialVersionUID = -3708466345601627179L;
    /**
     * name : 1
     * signStatus : 2
     * userId : 4
     * workNo : 1
     * seat : 1排1座
     * classId : xx
     * className : xxx
     * resourceId : xx
     * appState : app状态
     * appStateName : app状态名称
     */

    private String name;
    private int signStatus;
    private int userId;
    private String workNo;
    private String seat;
    private String classId;
    private String className;
    private String resourceId = "";
    private String appState;
    private String appStateName;
    private int localAvatar = -1;

    public int getLocalAvatar() {
        return localAvatar;
    }

    public void setLocalAvatar(int localAvatar) {
        this.localAvatar = localAvatar;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof Member) {
            if (this.userId == ((Member) obj).userId) {
                return true;
            }
        }
        return super.equals(obj);
    }

    @Override
    public int hashCode() {
        return userId * 30;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSignStatus() {
        return signStatus;
    }

    public void setSignStatus(int signStatus) {
        this.signStatus = signStatus;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getWorkNo() {
        return workNo;
    }

    public void setWorkNo(String workNo) {
        this.workNo = workNo;
    }

    public String getSeat() {
        return seat;
    }

    public void setSeat(String seat) {
        this.seat = seat;
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getResourceId() {
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    public String getAppState() {
        return appState;
    }

    public void setAppState(String appState) {
        this.appState = appState;
    }

    public String getAppStateName() {
        return appStateName;
    }

    public void setAppStateName(String appStateName) {
        this.appStateName = appStateName;
    }
}
